<?php
namespace app\controller;

use app\BaseController;

class Index extends BaseController
{
    public function index($url = '')
    {
        if (!empty($url)) return redirect($url);
        header("refresh:3;url=https://www.schub.top");
        return '<h1>:(<br>你正在尝试直接访问API接口<br>三秒后会带你回到主站<br><a href="https://www.schub.top">https://www.schub.top</a></h1>';
    }

}
